import _sfc_main from "./index.vue2.mjs";
import { resolveComponent, createElementBlock, openBlock, createBlock, createSlots, withCtx, createElementVNode, toDisplayString, createTextVNode, createCommentVNode } from "vue";
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
const _hoisted_1 = { class: "m-input-container" };
const _hoisted_2 = {
  key: 1,
  class: "m-detail-content"
};
const _hoisted_3 = {
  key: 0,
  class: "append"
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_van_field = resolveComponent("van-field");
  return openBlock(), createElementBlock("div", _hoisted_1, [
    !_ctx.isDetail ? (openBlock(), createBlock(_component_van_field, {
      key: 0,
      modelValue: _ctx.fieldModel,
      "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.fieldModel = $event),
      type: "text",
      name: _ctx.options.name,
      label: _ctx.options.label,
      disabled: _ctx.options.disabled,
      readonly: _ctx.options.readonly,
      placeholder: _ctx.options.placeholder,
      clearable: _ctx.options.clearable,
      maxlength: _ctx.options.maxlength || void 0,
      "show-word-limit": _ctx.options.showWordLimit,
      required: _ctx.options.required,
      "label-width": _ctx.options.labelPosition === "top" ? "100%" : void 0,
      "label-align": _ctx.options.labelPosition || void 0,
      "input-align": _ctx.options.inputAlign || void 0,
      autocomplete: "off"
    }, createSlots({ _: 2 }, [
      _ctx.options.append ? {
        name: "button",
        fn: withCtx(() => [
          createElementVNode("div", null, toDisplayString(_ctx.options.append), 1)
        ]),
        key: "0"
      } : void 0
    ]), 1032, ["modelValue", "name", "label", "disabled", "readonly", "placeholder", "clearable", "maxlength", "show-word-limit", "required", "label-width", "label-align", "input-align"])) : (openBlock(), createElementBlock("div", _hoisted_2, [
      createTextVNode(toDisplayString(_ctx.fieldModel) + " ", 1),
      _ctx.options.append ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.options.append), 1)) : createCommentVNode("", true)
    ]))
  ]);
}
const Index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
  Index as default
};
